The photograph to the right is using a specific palette of 256 colors.
Choose the Change Palette button to see the same photograph using a different palette of 256 colors.
Do you see a shift in colors??? (You probably won't see a shift if your monitor is displaying more than 256 colors.)))
SetSpecialCursor("Special2")
"palette"
ouseEnter
mouseLeave
mouseEnter
buttonup
mouseEnter
Special2
SetSpecialCursor
mouseLeave
SetSpecialCursor
buttonup
palette
palette
Change Palette
:PHYSSIZE
text1
plast
1425,1425,4905,3660
pfirst
9705,1425,13185,3660
Each graphic you have has a palette associated with it. A palette is the designated group of colors used to display a graphic.c.n the screen.]g on the screen.]
o G"/
text2
Here's a sample of a 16 color palette::te used throughout most of this program:
Repeat
SetSpecialCursor("Special2")
"vo1"
"vo2"
tbkMCIchk ("close wavefile","",1,1)
\graphics\g6r.
$ type waveaudio alias
Tplay
0 hold","",1,1)
mouseLeave
mouseEnter
buttondown
buttonup
mouseEnter
Special2
SetSpecialCursor
mouseLeave
SetSpecialCursor
buttondown
buttonup
close wavefile
tbkMCIchk
open \graphics\g6r.wav type waveaudio alias wavefile
tbkMCIchk
play wavefile from 0 hold
tbkMCIchk
:PHYSSIZE
text2
plast
1650,4230,3885,5385
pfirst
1650,4230,3885,5385
The different types of graphics
text1
pfirst
1650,3345,4155,4125
plast
-1965,4230,270,5385
In this lesson, you will learn:tips on making mu
:PHYSSIZE
3 g ;
tavia
:PHYSSIZE
text3
pfirst
-3630,1770,195,2280
plast
855,1770,4680,2280
Which resolutions look best
text4
pfirst
-2205,2490,120,3300
plast
1650,2490,3975,3300
About palettes, and problems with palettes
-2325,3345,180,4125
SetSpecialCursor("Special2")
tbkMCIchk ("close wavefile","",1,1)
\graphics\forest1.
( type waveaudio alias
Xplay
0 hold","",1,1)
ouseEnter
mouseLeave
mouseEnter
buttonup
mouseEnter
Special2
SetSpecialCursor
mouseLeave
SetSpecialCursor
buttonup
close wavefile
tbkMCIchk
open \graphics\forest1.wav type waveaudio alias wavefile
tbkMCIchk
play wavefile from 0 hold
tbkMCIchk
plast
4215,1785,9120,5505
pfirst
4215,1785,9120,5505
graphic2
graphic1
plast
4170,1140,8970,4740
pfirst
4170,1140,8970,1140
:PHYSSIZE
text2
And here's a photograph:................................
text3
plast
735,5580,4605,6105
pfirst
735,5580,4605,6105
All of these are graphics.....ome common file formats for graphics include: .BMP, .DIB, .WMF, .TIF, and .PCX.: .BMP, .DIB, .WMF, .TIF, .PCX))
text1
Here's a graphical illustration:}
SetSpecialCursor("Special2")
tbkMCIchk ("close wavefile","",1,1)
\graphics\turtle.
' type waveaudio alias
Wplay
0 hold","",1,1)
ouseEnter
mouseLeave
mouseEnter
buttonup
mouseEnter
Special2
SetSpecialCursor
mouseLeave
SetSpecialCursor
buttonup
close wavefile
tbkMCIchk
open \graphics\turtle.wav type waveaudio alias wavefile
tbkMCIchk
play wavefile from 0 hold
tbkMCIchk
plast
4215,5505,9120,5505
pfirst
600,2565,2895,5025
:PHYSSIZE
600,5025,2895,5025
9630,5580,13500,6105
im1 style popup
tbkMCIchk
anim1
tbkMCIPositionWindow
play anim1 wait
tbkMCIchk
close anim1
tbkMCIchk
strOpen
thePlace
theFile
alter
Plast
Pfirst
yieldApp
newBounds
coming
going
slice
leavepage
enterpage
exitbook
location
mouseleave
SetSpecialCursor
mouseenter
SetSpecialCursor
leavebook
TBKWIN.DLL
kernel
mycursor.dll
:PHYSSIZE
:PHYSSIZE
The reason the shift in color happens is that the two graphics are using different palettes.
[The palette is the designated group of colors used to display everything on the screen.]onitor is set to display 256 colors, you can only have 256 colors on the screen at a time. So one graphic requires a certain set of 256 colors, while the other graphic requires another set of 256 colors; some of these may overlap, some won't. The shift comes when the first set of 256 colors used to display the first graphic is shifting to the second set of 256 colors needed to display the second graphic.
y overlap, some won't. The shift comes when the first set of 256 colors used to display the first graphic is shifting to the second set of 256 colors needed to display the second graphic.
color #112 (say its burnt orange) of the first palette is different than color #112 (say its light blue) of the second palette, every instance of burnt orange in the first graphic will change to light blue when the second graphic is being loaded.
when the second graphic is being loaded.
is being loaded.
lue when the second graphic is being loaded.
being loaded.
4machine
Zspeed
4openwave
"text1"
-8490,1305,300,2040
pfirst
-8490,1305,300,2040
plast
570,1305,9360,2040
alter
tbkMCIchk ("close wavefile","",1,1)
570,1305,9360,2040
9585,1305,18375,2040
enterpage
leavepage
enterpage
text1
text1
text1
text1
pfirst
text1
plast
alter
text1
openwave
speed
machine
leavepage
close wavefile
tbkMCIchk
text1
pfirst
text1
plast
alter
text1
alter
text1
machine
openwave
:PHYSSIZE
:PHYSSIZE
text1
Format
text1
File Extension
text1
text1
text1
TIFF (Tagged Image File Format)
text1
text1
BMP (Bitmap)
text1
text1
DIB (Device Independent Bitmap)
text1
text1
plast
9585,1305,18375,2040
pfirst
570,1305,9360,2040
Graphics come in several different file formats. The more common file formats are listed below:+
SetSpecialCursor("Special2")
"vo1"
"vo2"
4openwave
tbkMCIchk ("close wavefile","",1,1)
\graphics\g3b.
l type waveaudio alias
yplay
0 hold","",1,1)
mouseLeave
mouseEnter
buttondown
buttonup
mouseEnter
Special2
SetSpecialCursor
mouseLeave
SetSpecialCursor
buttondown
buttonup
close wavefile
tbkMCIchk
open \graphics\g3b.wav type waveaudio alias wavefile
tbkMCIchk
play wavefile from 0 hold
tbkMCIchk
openwave
:PHYSSIZE
4machine
Zspeed
"text1"
4800,1950,4800,6045
"text2"
9195,1965,9195,5535
tbkMCIchk ("
\graphics\busines2.wav type waveaudio alias wavefile","",1,1)
Lplay
0 hold","",1,1)
yeildApp ()
pfirst
4800,1950,4800,6045
plast
1875,1950,4800,6045
alter
9195,1965,9195,5535
6255,1965,9195,5535
close
enterpage
leavepage
enterpage
text1
text1
text2
text2
open \graphics\busines2.wav type waveaudio alias wavefile
tbkMCIchk
play wavefile from 0 hold
tbkMCIchk
yeildApp
text1
text1
pfirst
text1
plast
alter
text1
text2
text2
pfirst
text2
plast
alter
text2
speed
machine
leavepage
close wavefile
tbkMCIchk
:PHYSSIZE
:PHYSSIZE
text1
plast
9195,1965,9195,5535
pfirst
1875,1950,4800,6045
If your monitor is set
to display 256 colors,
you can have only
256 colors on the
screen at a time. So
one graphic requires
a certain set of 256
colors, while the other
graphic requires
another set of 256
colors..verlap, some won't. The shift comes when the first set of 256 colors used to display the first graphic is shifting to the second set of 256 colors needed to display the second graphic.
ly have 256 colors on the screen at a time. So one graphic requires a certain set of 256 colors, while the other graphic requires another set of 256 colors; some of these may overlap, some won't. The shift comes when the first set of 256 colors used to display the first graphic is shifting to the second set of 256 colors needed to display the second graphic.
color #112 (say its burnt orange) of the first palette is different than color #112 (say its light blue) of the second palette, every instance of burnt orange in the first graphic will change to light blue when the second graphic is being loaded.
when the second graphic is being loaded.
is being loaded.
lue when the second graphic is being loaded.
being loaded.
text2
plast
6255,1965,9195,5535
pfirst
6255,1965,9195,5535
The shift comes
when the first set
of 256 shifts to
the second set
of 256 colors.
s shifting to
the second set of
256 colors needed
to display the second
graphic.
es another set of 256 colors; some of these may overlap, some won't. The shift comes when the first set of 256 colors used to display the first graphic is shifting to the second set of 256 colors needed to display the second graphic.
ly have 256 colors on the screen at a time. So one graphic requires a certain set of 256 colors, while the other graphic requires another set of 256 colors; some of these may overlap, some won't. The shift comes when the first set of 256 colors used to display the first graphic is shifting to the second set of 256 colors needed to display the second graphic.
color #112 (say its burnt orange) of the first palette is different than color #112 (say its light blue) of the second palette, every instance of burnt orange in the first graphic will change to light blue when the second graphic is being loaded.
when the second graphic is being loaded.
is being loaded.
lue when the second graphic is being loaded.
being loaded.
4800,1950,4800,6045
but1_1
:PHYSSIZE
640x480 with 256 colors
but1_2
:PHYSSIZE
640x480 with 256 colors
text1
plast
630,1515,6510,2325
pfirst
9600,1515,15480,2325
On which of the following screen resolutions would a photograph NOT look good???
tbkMCIchk ("
\media\g6.wav type waveaudio alias wavefile","",1,1)
Eplay
0 hold","",1,1)
yeildApp()
close
enterpage
leavepage
enterpage
yeildApp
leavepage
text1
pfirst
1665,4095,4800,4095
plast
1665,1605,4800,4095
True or False: A shift in colors probably means that your monitor is displaying only 16 colors.ount of colors
:PHYSSIZE
but2_1
SetSpecialCursor("Special2")
"but2_1"
"but2_2"
PlayWave ("\graphics\yeah.wav")
mouseLeave
mouseEnter
buttondown
buttonup
mouseEnter
Special2
SetSpecialCursor
mouseLeave
SetSpecialCursor
buttondown
but2_1
but2_2
buttonup
but2_1
but2_2
vPlayWave
\graphics\yeah.wav
:PHYSSIZE
False
but1_1
SetSpecialCursor("Special2")
"but1_1"
"but1_2"
PlayWave ("\graphics\gasp.wav")
mouseLeave
mouseEnter
buttondown
buttonup
mouseEnter
Special2
SetSpecialCursor
mouseLeave
SetSpecialCursor
buttondown
but1_1
but1_2
buttonup
but1_1
but1_2
vPlayWave
\graphics\gasp.wav
:PHYSSIZE
but1_2
:PHYSSIZE
but2_2
:PHYSSIZE
False
4machine
Zspeed
"text1"
"text2"
"text3"
"pic1"
"pic2"
600,5025,2895,5025
4215,5505,9120,5505
9630,5580,13500,6105
tbkMCIchk ("
\graphics\busines2.wav type waveaudio alias wavefile","",1,1)
Lplay
0 hold","",1,1)
yeildApp
pfirst
600,5025,2895,5025
plast
600,2565,2895,5025
alter
4215,5505,9120,5505
4215,1785,9120,5505
9630,5580,13500,6105
735,5580,4605,6105
close
enterpage
leavepage
enterpage
text1
text2
text3
text3
open \graphics\busines2.wav type waveaudio alias wavefile
tbkMCIchk
play wavefile from 0 hold
tbkMCIchk
text1
pfirst
plast
alter
text2
pfirst
plast
alter
text3
text3
pfirst
text3
plast
alter
text3
yeildApp
speed
machine
leavepage
close wavefile
tbkMCIchk
:PHYSSIZE
text1
plast
1425,1425,4905,3660
pfirst
1425,1425,4905,3660
Each graphic you have has a palette associated with it. A palette is the designated group of colors used to display a graphic.c.n the screen.]g on the screen.]
o G"/
text2
Here's a sample of a 16 color palette::te used throughout most of this program:
Repeat
SetSpecialCursor("Special2")
"vo1"
"vo2"
tbkMCIchk ("close wavefile","",1,1)
\graphics\g6r.
$ type waveaudio alias
Tplay
0 hold","",1,1)
mouseLeave
mouseEnter
buttondown
buttonup
mouseEnter
Special2
SetSpecialCursor
mouseLeave
SetSpecialCursor
buttondown
buttonup
close wavefile
tbkMCIchk
open \graphics\g6r.wav type waveaudio alias wavefile
But inside your computer, it would look like this:
SetSpecialCursor("Special2")
4openwave
tbkMCIchk ("close wavefile","",1,1)
\graphics\tiger.
\ type waveaudio alias
iplay
0 hold","",1,1)
ouseEnter
mouseLeave
mouseEnter
buttonup
mouseEnter
Special2
SetSpecialCursor
mouseLeave
SetSpecialCursor
buttonup
close wavefile
tbkMCIchk
open \graphics\tiger.wav type waveaudio alias wavefile
tbkMCIchk
play wavefile from 0 hold
tbkMCIchk
openwave
plast
885,2115,5310,6015
pfirst
9660,2115,14085,6015
:PHYSSIZE
Tiger picture in PCX format.
text3
plast
6855,4245,8265,4605
H pfirst
9660,4245,11070,4605
TIGER.PCX
SetSpecialCursor("Special2")
playwave ("\graphics\
ouseEnter
mouseLeave
mouseEnter
buttonup
mouseEnter
Special2
SetSpecialCursor
mouseLeave
SetSpecialCursor
buttonup
vplaywave
\graphics\clear.wav
:PHYSSIZE
The more colors your monitor can display, the better your pictures will look. Fewer colors will limit the amount of colors used to display a photograph,
resulting in a
blotchy image..ing
picture..ying 256 colors. (Use the Windows Setup in your Windows program to change your display.) Fewer colors will limit the amount of colors used to display the photograph resulting in a blotchy looking picture. Most monitor cards these days are capable of various levels of resolution.
olution.
in the 1.3 x 1 ratio of a computer monitor - meaning your monitor is one third wider than it is tall.
em is equipped with such a video card, you can vary the resolution of your monitor. Examples of resolutions include: 640 x 480, 800 x 600, 1024 x 768. Notice these all maintain the 1.3 x 1 ratio of a computer monitor - meaning your monitor is one third wider than it is tall.
re can be.
SetSpecialCursor("Special2")
playwave ("\graphics\blotchie.
ouseEnter
mouseLeave
mouseEnter
buttonup
mouseEnter
Special2
SetSpecialCursor
mouseLeave
SetSpecialCursor
buttonup
vplaywave
\graphics\blotchie.wav
:PHYSSIZE
16 Colors
256 Colorss
mouseEn
4machine
Zspeed
"graphic1"
"graphic2"
"graphic3"
"text1"
4605,2955,7275,2955
6240,5565,9360,5565
4830,5955,7080,5955
1680,1620,1680,5775
tbkMCIchk("
\graphics\airmail.wav type waveaudio alias wavefile","",1,1)
Jplay
0 hold","",1,1)
yeildApp()
pfirst
4605,2955,7275,2955
plast
4605,510,7275,2955
alter
6240,5565,9360,5565
6240,1995,9360,5565
4830,5955,7080,5955
4830,4305,7080,5955
1680,1620,1680,5775
1680,1620,4365,5775
("close
enterpage
leavepage
enterpage
graphic1
graphic2
graphic3
text1
graphic1
graphic2
graphic3
text1
open \graphics\airmail.wav type waveaudio alias wavefile
tbkMCIchk
play wavefile from 0 hold
tbkMCIchk
yeildApp
graphic1
graphic1
pfirst
graphic1
plast
alter
graphic1
graphic2
graphic2
pfirst
graphic2
plast
alter
graphic2
graphic3
graphic3
pfirst
graphic3
plast
alter
graphic3
text1
text1
pfirst
text1
plast
alter
text1
alter
text1
speed
machine
leavepage
close wavefile
tbkMCIchk
theFile
"\graphics\gl05.avi"
strOpen
" &&
.&& "type AVIVideo alias video1 style popup
" && sysClientHandle
tbkMCIchk(
_,"",1,1)
tbkMCIPositionWindow(
"tavia","")
B"play
0","",1,1)
u"close
","",1,1)
enterpage
leavepage
enterpage
\graphics\gl05.avi
type AVIVideo alias video1 style popup parent
tbkMCIchk
tavia
tbkMCIPositionWindow
play video1 from 0
tbkMCIchk
video1
strOpen
theFile
leavepage
close video1
tbkMCIchk
text1
plast
1665,1605,4800,4095
pfirst
1665,4095,4800,4095
This concludes the Graphics lesson.
:PHYSSIZE
text2
plast
1650,2490,3975,3300
pfirst
-2205,2490,120,3300
The different types of graphics
text3
pfirst
-2325,3345,180,4125
plast
1650,3345,4155,4125
Which resolutions look best
text4
pfirst
-1965,4230,270,5385
plast
1650,4230,3885,5385
About palettes, and problems with palettes
text1
pfirst
1665,4095,4800,4095
plast
1665,1605,4800,4095
Topics covered:
graphic1
:PHYSSIZE
tavia
SetSpecialCursor("Special2")
playvideo("\graphics\gl05.avi"),("tavia")
ouseEnter
mouseLeave
mouseEnter
buttonup
mouseEnter
Special2
SetSpecialCursor
mouseLeave
SetSpecialCursor
buttonup
playvideo
\graphics\gl05.avi
tavia
:":PHYSSIZE
X":PHYSSIZE
Repeat
#:PHYSSIZE
SetSpecialCursor("Special2")
"vo1"
tbkMCIchk("close video1","",1,1)
theFile
"\graphics\gl05.avi"
strOpen
" &&
.&& "type AVIVideo alias
Z style popup
" && sysClientHandle
S,"",1,1)
tbkMCIPositionWindow(
"tavia","")
play
0","",1,1)
mouseLeave
mouseEnter
buttondown
buttonup
mouseEnter
Special2
SetSpecialCursor
mouseLeave
SetSpecialCursor
buttondown
buttonup
close video1
tbkMCIchk
\graphics\gl05.avi
type AVIVideo alias video1 style popup parent
tbkMCIchk
tavia
tbkMCIPositionWindow
play video1 from 0
tbkMCIchk
video1
strOpen
theFile
(:PHYSSIZE
"graphic1"
"graphic2"
"graphic3"
"graphic4"
"graphic5"
"text1"
"text2"
tbkMCIchk("
\media\cymbal.wav type waveaudio alias wavefile","",1,1)
Zplay
0 wait","",1,1)
enterpage
leavepage
enterpage
graphic1
graphic2
graphic3
graphic4
graphic5
text1
text2
graphic1
graphic2
graphic3
graphic4
text1
graphic5
text2
leavepage
text2
What
better way
to describe something than to
show a
picture
of it?xt. What better way to describe something than to show a picture of it?uter. Shapes and sizes and colors can now be used to communicate instead of just text. What better way to describe something than to show a picture of it?????e of it?rovide a more natural way for us to deal with bits and bytes, 0s and 1s. Shapes and sizes and colors can now be used to communicate instead of just text. What better way to depict an object than to show a picture of it????????????
graphic1
graphic2
graphic3
graphic4
text1
Now instead of being limited
to text alone, we can
communicate by using
shapes, sizes, and colors.
graphic5
SetSpecialCursor("Special2")
playwave ("\graphics\cow.
ouseEnter
mouseLeave
mouseEnter
buttonup
mouseEnter
Special2
SetSpecialCursor
mouseLeave
SetSpecialCursor
buttonup
vplaywave
\graphics\cow.wav
:PHYSSIZE
4machine
Zspeed
"c10"
"c11"
"c12"
"c13"
"c14"
"c15"
"c16"
"text2"
"text1"
9705,1425,13185,3660
tbkMCIchk ("
\graphics\g6.wav type waveaudio alias wavefile","",1,1)
Fplay
0 hold","",1,1)
yeildApp ()
pfirst
9705,1425,13185,3660
plast
1425,1425,4905,3660
alter
("close
enterpage
leavepage
enterpage
text2
text1
text1
open \graphics\g6.wav type waveaudio alias wavefile
tbkMCIchk
play wavefile from 0 hold
tbkMCIchk
yeildApp
text1
text1
pfirst
text1
plast
alter
text1
333333
333333
333333
333333
333333
333333
333333
333333
333333
333333
333333
333333
333333
333333
333333
333333
text2
speed
machine
leavepage
close wavefile
tbkMCIchk
4machine
Zspeed
"text1"
"text2"
"text3"
-5490,1410,330,1785
-1185,2655,150,3780
-1785,2655,120,4020
tbkMCIchk ("
\graphics\g3a.wav type waveaudio alias wavefile","",1,1)
Gplay
0 hold","",1,1)
yeildApp()
pfirst
-5490,1410,330,1785
plast
870,1410,6690,1785
alter
-1185,2655,150,3780
1785,2655,3120,3780
-1785,2655,120,4020
5625,2655,7530,4020
close
enterpage
leavepage
enterpage
text1
text2
text3
text1
text2
text3
open \graphics\g3a.wav type waveaudio alias wavefile
tbkMCIchk
play wavefile from 0 hold
tbkMCIchk
yeildApp
text1
text1
pfirst
text1
plast
alter
text1
text2
text2
pfirst
text2
plast
alter
text2
text3
text3
pfirst
text3
plast
alter
text3
alter
text3
speed
machine
leavepage
close wavefile
tbkMCIchk
4machine
Zspeed
"text1"
1665,4095,4800,4095
"text2"
5475,5970,9135,5970
tbkMCIchk ("
\graphics\busines2.wav type waveaudio alias wavefile","",1,1)
Lplay
0 hold","",1,1)
yeildApp ()
pfirst
1665,4095,4800,4095
plast
1665,1605,4800,4095
alter
5475,5970,9135,5970
5475,3240,9135,5970
close
enterpage
leavepage
enterpage
text1
text1
text2
text2
open \graphics\busines2.wav type waveaudio alias wavefile
tbkMCIchk
play wavefile from 0 hold
tbkMCIchk
yeildApp
text1
text1
pfirst
text1
plast
alter
text1
text2
text2
pfirst
text2
plast
alter
text2
speed
machine
leavepage
close wavefile
tbkMCIchk
:PHYSSIZE
:PHYSSIZE
text1
plast
5475,3240,9135,5970
pfirst
5475,5970,9135,5970
One way to get around this is to have a palette that works for every graphic you are using in your program (including all backgrounds, animation, and video). It is not likely that you will get a 256 color palette that will display every color in every graphic you have. However, you can end up with the best 256 colors to display all the graphics without too much change to the original colors. To get this palette, you need to gather all the graphics and put them through a process that calculates the optimal palette.. This process is called XXXXX. rd system palette that is used unless you designate otherwise.s used unless you designate otherwise.. The first set of 256 colors used to display the first graphic is shifting to the second set of 256 colors needed to display the second graphic.
One way to get around this is to have a palette that works for every graphic (including the background, animation, and video) you are using in your program. Windows has a standard system palette that is used unless you designate otherwise.....
text2
plast
1665,4095,4800,4095
pfirst
5475,3240,9135,5970
It is not likely that you will get a 256-color palette that will display every color in every graphic you have. However, you can end up with the best 256 colors to display all the graphics without too much change to the original colors. To get this palette, you need to gather all the graphics and put them through a process that calculates the optimal palette.uch change to the original colors. To get this palette, you need to gather all the graphics and put them through a process that calculates the optimal palette. This process is called XXXXX. rd system palette that is used unless you designate otherwise.s used unless you designate otherwise.. The first set of 256 colors used to display the first graphic is shifting to the second set of 256 colors needed to display the second graphic.
One way to get around this is to have a palette that works for every graphic (including the background, animation, and video) you are using in your program. Windows has a standard system palette that is used unless you designate otherwise.....
1665,1605,4800,4095
loaded.
is being loaded.
lue when the second graphic is being loaded.
being loaded.
4machine
Zspeed
resources
"text1"
"text2"
"text3"
"text4"
"bul1"
"bul2"
"bul3"
-3630,1770,195,2280
-2205,2490,120,3300
-2325,3345,180,4125
-1965,4230,270,5385
pfirst
-3630,1770,195,2280
plast
855,1770,4680,2280
alter
-2205,2490,120,3300
1650,2490,3975,3300
-2325,3345,180,4125
1650,3345,4155,4125
-1965,4230,270,5385
1650,4230,3885,5385
theFile
"\graphics\gl01.avi"
strOpen
" &&
.&& "type AVIVideo alias video1 style popup
" && sysClientHandle
tbkMCIchk(
_,"",1,1)
tbkMCIPositionWindow(
"tavia","")
B"play
0","",1,1)
m"close
","",1,1)
enterpage
leavepage
enterpage
resources
text1
text2
text3
text4
text1
text2
text3
text4
text1
text1
pfirst
text1
plast
alter
text1
text2
text2
pfirst
text2
plast
alter
text2
text3
text3
pfirst
text3
plast
alter
text3
text4
text4
pfirst
text4
plast
alter
text4
\graphics\gl01.avi
type AVIVideo alias video1 style popup parent
tbkMCIchk
tavia
tbkMCIPositionWindow
play video1 from 0
tbkMCIchk
video1
strOpen
theFile
speed
machine
leavepage
close video1
tbkMCIchk
SetSpecialCursor("Special2")
tbkMCIchk ("close wavefile","",1,1)
\graphics\forest1.
( type waveaudio alias
Xplay
0 hold","",1,1)
ouseEnter
mouseLeave
mouseEnter
buttonup
mouseEnter
Special2
SetSpecialCursor
mouseLeave
SetSpecialCursor
buttonup
close wavefile
tbkMCIchk
open \graphics\forest1.wav type waveaudio alias wavefile
tbkMCIchk
play wavefile from 0 hold
tbkMCIchk
plast
4215,1785,9120,5505
pfirst
4215,5505,9120,5505
graphic2
graphic1
plast
4170,1140,8970,4740
pfirst
4170,1140,8970,1140
:PHYSSIZE
text2
And here's a photograph:................................
text3
plast
735,5580,4605,6105
pfirst
9630,5580,13500,6105
All of these are graphics.....ome common file formats for graphics include: .BMP, .DIB, .WMF, .TIF, and .PCX.: .BMP, .DIB, .WMF, .TIF, .PCX))
text1
Here's a graphical illustration:}
SetSpecialCursor("Special2")
tbkMCIchk ("close wavefile","",1,1)
\graphics\turtle.
' type waveaudio alias
Wplay
0 hold","",1,1)
ouseEnter
mouseLeave
mouseEnter
buttonup
mouseEnter
Special2
SetSpecialCursor
mouseLeave
SetSpecialCursor
buttonup
close wavefile
tbkMCIchk
open \graphics\turtle.wav type waveaudio alias wavefile
tbkMCIchk
play wavefile from 0 hold
tbkMCIchk
plast
600,2565,2895,5025
pfirst
600,5025,2895,5025
:PHYSSIZE
"graphic1"
"graphic2"
"graphic3"
"text1"
"text2"
tbkMCIchk ("
\graphics\G4.wav type waveaudio alias wavefile","",1,1)
Fplay
0 hold","",1,1)
yeildApp
close
enterpage
leavepage
enterpage
graphic1
graphic2
graphic3
text1
text2
text1
graphic3
graphic2
graphic1
text2
open \graphics\G4.wav type waveaudio alias wavefile
tbkMCIchk
play wavefile from 0 hold
tbkMCIchk
yeildApp
leavepage
close wavefile
tbkMCIchk
:PHYSSIZE
text1
Let's take a close look at photographs. A photograph will look best if your monitor and video card are set for the correct resolution.rrect resolution.otographs well is a resolution of 640 x 480 displaying 256 colors. (Use the Windows Setup in your Windows program to change your display.) Fewer colors will limit the amount of colors used to display the photograph resulting in a blotchy looking picture. Most monitor cards these days are capable of various levels of resolution.
olution.
in the 1.3 x 1 ratio of a computer monitor - meaning your monitor is one third wider than it is tall.
em is equipped with such a video card, you can vary the resolution of your monitor. Examples of resolutions include: 640 x 480, 800 x 600, 1024 x 768. Notice these all maintain the 1.3 x 1 ratio of a computer monitor - meaning your monitor is one third wider than it is tall.
re can be.
j x!;
graphic3
:PHYSSIZE
graphic2
:PHYSSIZE
graphic1
:PHYSSIZE
256 Colors
text2
A photograph will look best if your monitor and video card are set for the correct resolution. card are set for the correct resolution.rrect resolution.otographs well is a resolution of 640 x 480 displaying 256 colors. (Use the Windows Setup in your Windows program to change your display.) Fewer colors will limit the amount of colors used to display the photograph resulting in a blotchy looking picture. Most monitor cards these days are capable of various levels of resolution.
olution.
in the 1.3 x 1 ratio of a computer monitor - meaning your monitor is one third wider than it is tall.
em is equipped with such a video card, you can vary the resolution of your monitor. Examples of resolutions include: 640 x 480, 800 x 600, 1024 x 768. Notice these all maintain the 1.3 x 1 ratio of a computer monitor - meaning your monitor is one third wider than it is tall.
re can be.
Repeat
SetSpecialCursor("Special2")
"vo1"
"vo2"
tbkMCIchk ("close wavefile","",1,1)
\graphics\g4.
# type waveaudio alias
Splay
0 hold","",1,1)
mouseLeave
mouseEnter
buttondown
buttonup
mouseEnter
Special2
SetSpecialCursor
mouseLeave
SetSpecialCursor
buttondown
buttonup
close wavefile
tbkMCIchk
open \graphics\g4.wav type waveaudio alias wavefile
tbkMCIchk
play wavefile from 0 hold
tbkMCIchk
8!:PHYSSIZE
One problem with palettes that you may encounter when displaying graphics, videos, or animations is a shift in colors.
This color shift mostly occurs on monitors displaying 256 colors or less..reason this happens is that the two graphics are using different [palettes]. [The palette is the designated group of colors used to display everything on the screen.] If your monitor is set to display 256 colors, you can only have 256 colors on the screen at a time. So one graphic requires a certain set of 256 colors, while the other graphic requires another set of 256 colors; some of these may overlap, some won't. The shift comes when the first set of 256 colors used to display the first graphic is shifting to the second set of 256 colors needed to display the second graphic.
color #112 (say its burnt orange) of the first palette is different than color #112 (say its light blue) of the second palette, every instance of burnt orange in the first graphic will change to light blue when the second graphic is being loaded.
when the second graphic is being loaded.
is being loaded.
lue when the second graphic is being loaded.
being loaded.
:PHYSSIZE
System
Arial
Arial
:PRINTLAYOUT
Times New Roman
Times New Roman
Arial
Professor MULTIMEDIA
mes New Roman
Arial
Times New Roman
:PHYSSIZE
SetSpecialCursor("Special2")
eatClicks()
ouseEnter
mouseLeave
mouseEnter
buttonup
mouseEnter
Special2
SetSpecialCursor
mouseLeave
SetSpecialCursor
buttonup
eatClicks
SetSpecialCursor("Special2")
gotomain
ouseEnter
mouseLeave
mouseEnter
buttonup
mouseEnter
Special2
SetSpecialCursor
mouseLeave
SetSpecialCursor
buttonup
kgotomain
SetSpecialCursor("Special2")
exitbook
ouseEnter
mouseLeave
mouseEnter
buttonup
mouseEnter
Special2
SetSpecialCursor
mouseLeave
SetSpecialCursor
buttonup
9rexitbook
SetSpecialCursor("Special2")
eatClicks()
ouseEnter
mouseLeave
mouseEnter
buttonup
mouseEnter
Special2
SetSpecialCursor
mouseLeave
SetSpecialCursor
buttonup
eatClicks
title
Graphics
text2
plast
1650,2490,3975,3300
pfirst
-2205,2490,120,3300
The different types of graphics
text1
pfirst
-3630,1770,195,2280
plast
855,1770,4680,2280
In this lesson, you will learn:tips on making mu
:PHYSSIZE
3 g ;
tavia
:PHYSSIZE
text3
pfirst
-2325,3345,180,4125
plast
1650,3345,4155,4125
Which resolutions look best
text4
pfirst
-1965,4230,270,5385
plast
1650,4230,3885,5385
About palettes, and problems with palettes
4machine
Zspeed
"text1"
"text2"
3600,3510,7095,3510
3600,3435,7095,3435
tbkMCIchk ("
\graphics\8id96.wav type waveaudio alias wavefile","",1,1)
Iplay
0 hold","",1,1)
yeildApp ()
pfirst
3600,3510,7095,3510
plast
3600,1470,7095,3510
alter
3600,3435,7095,3435
3600,3435,7095,5460
close
enterpage
leavepage
enterpage
text1
text2
text1
text2
open \graphics\8id96.wav type waveaudio alias wavefile
tbkMCIchk
play wavefile from 0 hold
tbkMCIchk
yeildApp
text1
text1
pfirst
text1
plast
alter
text1
text2
text2
pfirst
text2
plast
alter
text2
speed
machine
leavepage
close wavefile
tbkMCIchk
text1
plast
3600,3435,7095,3435
pfirst
3600,3435,7095,3435
To work with graphics, you don't have to know the in's and out's of the different formats -- you need only to know which kind you need.
text2
plast
3600,3435,7095,5460
pfirst
3600,3435,7095,3435
text2
3600,1470,7095,3510
3600,3435,7095,5460
text2
SetSpecialCursor("Special2")
tbkMCIchk ("close wavefile","",1,1)
\graphics\hwgr3.
& type waveaudio alias
Vplay
0 hold")
ouseEnter
mouseLeave
mouseEnter
buttonup
mouseEnter
Special2
SetSpecialCursor
mouseLeave
SetSpecialCursor
buttonup
close wavefile
tbkMCIchk
open \graphics\hwgr3.wav type waveaudio alias wavefile
The application you use to work with graphics will specify which type of file format you need...
close video1
tbkMCIchk
\graphics\gl01.avi
type AVIVideo alias video1 style popup parent
tbkMCIchk
tavia
tbkMCIPositionWindow
play video1 from 0
tbkMCIchk
video1
strOpen
theFile
:PHYSSIZE
-2205,2490,120,3300
:PHYSSIZE
text1
plast
-5490,1410,330,1785
pfirst
5625,2655,7530,4020
Graphics come in all shapes and sizes. Here's a simple object:
onment and OS/2, graphics have been an important part of how we interact with the computer. Shapes and sizes and colors can now be used to communicate instead of just text. What better way to describe something than to show a picture of it?rovide a more natural way for us to deal with bits and bytes, 0s and 1s. Shapes and sizes and colors can now be used to communicate instead of just text. What better way to depict an object than to show a picture of it????????????
text3
plast
-1785,2655,120,4020
pfirst
1785,2655,3120,3780
Here's a more sophisticated graphic:s. Here's a simple object.
onment and OS/2, graphics have been an important part of how we interact with the computer. Shapes and sizes and colors can now be used to communicate instead of just text. What better way to describe something than to show a picture of it?rovide a more natural way for us to deal with bits and bytes, 0s and 1s. Shapes and sizes and colors can now be used to communicate instead of just text. What better way to depict an object than to show a picture of it????????????
text2
plast
-1185,2655,150,3780
pfirst
870,1410,6690,1785
Here's a simple graphic:pes and sizes. Here's a simple object:
onment and OS/2, graphics have been an important part of how we interact with the computer. Shapes and sizes and colors can now be used to communicate instead of just text. What better way to describe something than to show a picture of it?rovide a more natural way for us to deal with bits and bytes, 0s and 1s. Shapes and sizes and colors can now be used to communicate instead of just text. What better way to depict an object than to show a picture of it????????????
SetSpecialCursor("Special2")
"vo1"
"vo2"
tbkMCIchk ("play wavefile
0 hold","",1,1)
mouseLeave
mouseEnter
buttondown
buttonup
mouseEnter
Special2
SetSpecialCursor
mouseLeave
SetSpecialCursor
buttondown
buttonup
play wavefile from 0 hold
tbkMCIchk
:PHYSSIZE
Repeat
5625,2655,7530,4020
:PHYSSIZE
graphic1
plast
6240,1995,9360,5565
pfirst
6240,5565,9360,5565
:PHYSSIZE
graphic2
plast
4830,4305,7080,5955
pfirst
4830,5955,7080,5955
:PHYSSIZE
text1
plast
4605,2955,7275,2955
pfirst
1680,1620,4365,5775
Since the
introduction of
the Macintosh
computer,
Windows
environment, and
OS/2, graphics
have been an
important part of
how we interact
with the
computer. lors can now be used to communicate instead of just text. What better way to describe something than to show a picture of it?????e of it?rovide a more natural way for us to deal with bits and bytes, 0s and 1s. Shapes and sizes and colors can now be used to communicate instead of just text. What better way to depict an object than to show a picture of it????????????
graphic3
plast
1680,1620,4365,5775
pfirst
1680,1620,1680,5775
:PHYSSIZE
SetSpecialCursor("Special2")
"vo1"
"vo2"
tbkMCIchk ("close wavefile","",1,1)
\graphics\g2.
# type waveaudio alias
Splay
0 hold","",1,1)
mouseLeave
mouseEnter
buttondown
buttonup
mouseEnter
Special2
SetSpecialCursor
mouseLeave
SetSpecialCursor
buttondown
buttonup
close wavefile
tbkMCIchk
open \graphics\g2.wav type waveaudio alias wavefile
tbkMCIchk
play wavefile from 0 hold
tbkMCIchk
:PHYSSIZE
4605,510,7275,2955
"fireworks"
"teacher"
5040,1080,8867,5595
tbkMCIchk ("
\media\g6.wav type waveaudio alias wavefile","",1,1)
Eplay
0 hold","",1,1)
yeildApp()
close
enterpage
leavepage
enterpage
fireworks
teacher
fireworks
yeildApp
leavepage
text1
pfirst
1665,4095,4800,4095
plast
1665,1605,4800,4095
True or False: A shift in colors probably means that your monitor is displaying only 16 colors.ount of colors
teacher
:PHYSSIZE
but2_1
SetSpecialCursor("Special2")
"but2_1"
"but2_2"
"teacher"
"fireworks"
PlayWave ("\graphics\
.wav")
pfirst
5040,1080,8867,5595
plast
8865,1080,8867,5595
alter
mouseLeave
mouseEnter
buttondown
buttonup
mouseEnter
Special2
SetSpecialCursor
mouseLeave
SetSpecialCursor
buttondown
but2_1
but2_2
buttonup
but2_1
but2_2
teacher
fireworks
vPlayWave
\graphics\firework.wav
fireworks
fireworks
pfirst
fireworks
plast
alter
fireworks
fireworks
:PHYSSIZE
False
but1_1
SetSpecialCursor("Special2")
"but1_1"
"but1_2"
PlayWave ("\graphics\gasp.wav")
mouseLeave
mouseEnter
buttondown
buttonup
mouseEnter
Special2
SetSpecialCursor
mouseLeave
SetSpecialCursor
buttondown
but1_1
but1_2
buttonup
but1_1
but1_2
vPlayWave
\graphics\gasp.wav
:PHYSSIZE
but1_2
:PHYSSIZE
but2_2
:PHYSSIZE
False
fireworks
plast
8865,1080,8867,5595
pfirst
5040,1080,8867,5595
fireworks
:PHYSSIZE
this palette, you need to gather all the graphics and put them through a process that calculates the optimal palette. This process is called XXXXX. rd system palette that is used unless you designate otherwise.s used unless you designate otherwise.. The first set of 256 colors used to display the first graphic is shifting to the second set of 256 colors needed to display the second graphic.
One way to get around this is to have a palette that works for every graphic (including the background, animation, and video) you are using in your program. Windows has a standard system palette that is used unless you designate otherwise.....